package com.taotao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Chen-D.W on 2017/7/19.
 */
@Controller
public class PageController {
    @RequestMapping(value = {"/"})
    public String index(){
        return "index";
    }
    @RequestMapping(value = {"/{page}"})
    public String Page(@PathVariable("page") String page){
        return page;
    }
}
